from django.urls import path, include
from rest_framework.routers import SimpleRouter
from .views import CourseCategoryView, CourseView, CourseChapterView,CourseSearchView

router = SimpleRouter()
# 127.0.0.1:8000/api/v1/course/category/  get
router.register('category', CourseCategoryView, 'category')
# 127.0.0.1:8000/api/v1/course/actual/  get
router.register('actual', CourseView, 'actual')
# 127.0.0.1:8000/api/v1/course/chapter/  get
router.register('chapter', CourseChapterView, 'chapter')
# 127.0.0.1:8000/api/v1/course/search/?search=python  get
router.register('search', CourseSearchView, 'search')
urlpatterns = [
    path('', include(router.urls))
]
